home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-04-13 | 1.0 KB | 34 lines | [TEXT/GEOL] |
- Item 3210562 12-April-89 16:35
-
- From: REDDEN Peat Marwick, Kevin Redden
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: REDDEN Peat Marwick, Kevin Redden
-
- Sub: DisposIfHandle Bug
-
- We seem to have found a problem with the new version ( ß9 ) of DisposIfHandle.
- If a handle is created ( and set to be purgeable ) and is later purged then a
- call to DisposIfHandle on that handle will fail ( in Debug only ).
-
- Sample Code to force the failure:
-
- tempHandle := NewHandle ( 1024 );
- HPurge ( tempHandle );
- PurgeMem ( Size ( 5000 ) * Size ( 1024 ) ); { Make real sure handle is purged }
- DisposIfHandle ( tempHandle );
-
- this will cause DisposIfHandle to relay the message
- "Trying to dispose an invalid handle"
- (then writes out the address of the handle )
- and trace breaks
-
- It seems as if RecoverHandle will not work if the handle has been purged.
-
- Please let me know if I was assuming something that I shouldn't be assuming!
-
-
- Kevin Redden
-
-